package com.project.fiveCerealsSavoury.domain;

import java.util.Date;

import javax.validation.constraints.NotNull;

/**
 * 报表
 * @author Administrator
 *
 */
public class ReportForms {
	/**
	 * id
	 */
	private Integer id;
	/**
	 * 日结工资
	 */
	@NotNull(message="日结工资不能为空")
	private Double daySalary;
	/**
	 * 月结工资
	 */
	@NotNull(message="月结工资不能为空")
	private Double monthSalary;
	/**
	 * 支出
	 */
	@NotNull(message="月支出不能为空")
	private Double pay;
	/**
	 * 收入
	 */
	@NotNull(message="月收入不能为空")
	private Double income;
	/**
	 * 时间
	 */
	@NotNull(message="时间不能为空")
	private Date time;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Double getDaySalary() {
		return daySalary;
	}
	public void setDaySalary(Double daySalary) {
		this.daySalary = daySalary;
	}
	public Double getMonthSalary() {
		return monthSalary;
	}
	public void setMonthSalary(Double monthSalary) {
		this.monthSalary = monthSalary;
	}
	public Double getPay() {
		return pay;
	}
	public void setPay(Double pay) {
		this.pay = pay;
	}
	public Double getIncome() {
		return income;
	}
	public void setIncome(Double income) {
		this.income = income;
	}
	
	public Date getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = time;
	}
	@Override
	public String toString() {
		return "ReportForms [id=" + id + ", daySalary=" + daySalary + ", monthSalary=" + monthSalary + ", pay=" + pay
				+ ", income=" + income + ", time=" + time + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((daySalary == null) ? 0 : daySalary.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result + ((income == null) ? 0 : income.hashCode());
		result = prime * result + ((monthSalary == null) ? 0 : monthSalary.hashCode());
		result = prime * result + ((pay == null) ? 0 : pay.hashCode());
		result = prime * result + ((time == null) ? 0 : time.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ReportForms other = (ReportForms) obj;
		if (daySalary == null) {
			if (other.daySalary != null)
				return false;
		} else if (!daySalary.equals(other.daySalary))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (income == null) {
			if (other.income != null)
				return false;
		} else if (!income.equals(other.income))
			return false;
		if (monthSalary == null) {
			if (other.monthSalary != null)
				return false;
		} else if (!monthSalary.equals(other.monthSalary))
			return false;
		if (pay == null) {
			if (other.pay != null)
				return false;
		} else if (!pay.equals(other.pay))
			return false;
		if (time == null) {
			if (other.time != null)
				return false;
		} else if (!time.equals(other.time))
			return false;
		return true;
	}
	
}
